import service from '@/utils/request';

// 获取黑名单列表
export function getBlackList(data) {
  return service({
    url: `/api/system/blackList/findUserBlackList`,
    method: 'post',
    data,
  });
}

// 移除黑名单
export function removeBlackList(id) {
  return service({
    url: `/api/system/blackList/unBanUser?uid=${id}`,
    method: 'get',
  });
}

// 添加黑名单
export function addBlackList(id) {
  return service({
    url: `/api/system/blackList/banUser?uid=${id}`,
    method: 'get',
  });
}

